import request from '@/utils/request'


export function listObj(data) {
  return request({
    url: '/cmsFloatBox/page?pageNum='+data.pageNum+'&pageSize='+data.pageSize+'&content='+data.queryStr,
    method: 'get',
  });
}


export function saveObj(data) {
  return request({
    url: '/cmsFloatBox/save',
    method: 'post',
    data
  });
}


export function getObj(id) {//获取详情
  return request({
    url: '/cmsFloatBox/'+id,
    method: 'get'
  });
}

export function delObj(id) {//获取详情
  return request({
    url: '/cmsFloatBox/'+id,
    method: 'delete'
  });
}

export function uploadFile(data) {//上传
  return request({
    url: '/cmsFloatBox/upload',
    method: 'post',
    data
  });
}

export function delFile(data) {
  return request({
    url: '/cmsFloatBox/file/delete?fileName='+data,
    method: 'get'
  });
}
